package my.audit.message;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import my.audit.message.beans.Audit;
import my.audit.message.dm.VehicleHistoryAuditDataManager;

@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public class VehicleHistoryAuditManagerImpl implements VehicleHistoryAuditManager {

	private VehicleHistoryAuditDataManager dm;
	
	public void createAudit(Audit audit) {
		dm.createAudit(audit);
	}

	/**
	 * @param dm the dm to set
	 */
	@Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED)
	public void setDm(VehicleHistoryAuditDataManager dm) {
		this.dm = dm;
	}

}
